<template>
  <div>
    <div class="span-main">{{title}}</div>
    <div style="display: flex">
      <div class="span-second">
        <span>年份 </span>
        <el-input-number 
          v-model="interval_num_max"
          controls-position="right"
          size="medium"
          :step="1"
          :min="1"
          :max="100">
        </el-input-number>
      </div>
      <div class="span-second">
        <span>日飞行小时 </span>
        <el-input-number 
          v-model="interval_num_A"
          controls-position="right"
          size="medium"
          :step="1"
          :min="1"
          :max="100">
        </el-input-number>
        <span>FH</span>
      </div>
      <div class="span-second">
        <span>日飞行循环 </span>
        <el-input-number 
          v-model="interval_num_C"
          controls-position="right"
          size="medium"
          :step="1"
          :min="1"
          :max="100">
        </el-input-number>
        <span>FC</span>
      </div>
    </div>
  </div>
</template>

<script>
//import echarts from 'echarts'
export default {
  name: 'TimeParam',
  props: {
    title: {
      type: String,
      default: "间隔参数"
    },
    num_max:{
      type: Number,
      default: 10
    },
    num_A:{
      type: Number,
      default: 10
    },
    num_C:{
      type: Number,
      default: 2
    }
  },
  data() {
    return {
      chart: null,
      interval_num_max: this.num_max,
      interval_num_A: this.num_A,
      interval_num_C: this.num_C
    }
  },
  watch:{
    // chartData: {
    //   deep: true,
    //   handler (val) {
    //     this.chart.setOption(val)
    //   }
    // }
  },
  mounted() {
    //this.initChart()
  },
  methods: {
    get_param(){
      return {max: this.interval_num_max, A: this.interval_num_A, C: this.interval_num_C}
    }
  }
}
</script>

<style scoped lang='scss'>
.span-second{
  margin-left: 80px;
}
.span-second:first-child{
  margin-left: 0px;
}
.span-second span{
  display: inline-block;
}
span{
  margin-top: 12px;
  margin-bottom: 3px;
}
.span-main{
  margin-top: 12px;
  margin-bottom: 15px;
  font-weight: bold;
}
.el-input-number{
  width: 120px;
  margin-left: 0px;
}
</style>
